package xyz.syyrjx.blog.service.impl;

import org.springframework.stereotype.Service;
import xyz.syyrjx.blog.dao.user.UserDao;
import xyz.syyrjx.blog.entity.User;
import xyz.syyrjx.blog.service.UserService;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserDao dao;
    @Override
    public User queryUserByLogin(String username, String password) {
        return dao.selectUser(username, password);
    }
}
